/*-----------------------------------------------
 * BookEZ - Booking System Project
 *-----------------------------------------------*/
package bookez.view.bean;

import java.io.Serializable;

import javax.faces.bean.ManagedProperty;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * This bean is the superclass of all managed beans
 * 
 * @author Genzer	
 */

public abstract class BaseBean implements Serializable {

	public ServiceLocatorBean getServiceLocator() { return this.serviceLocator; }
	public void			  setServiceLocator( ServiceLocatorBean value ) { this.serviceLocator = value; }
	
	@ManagedProperty ( name = "serviceLocator", value = "#{serviceLocatorBean}" )
	private ServiceLocatorBean serviceLocator;
	
	
	public void log( String log ) {
		this.logger.info( log );
	}
	private Log logger = LogFactory.getLog( this.getClass() );
	
	// Used for serializable
	private static final long serialVersionUID = 1715072206825928387L;
	
}//end class BaseBean
